package gtug.duesseldorf.client;

import gtug.duesseldorf.client.model.ClientLoginData;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
	String serverConnect(ClientLoginData loginData) throws Exception;

	Boolean serverDisconnect(String clientId);

	Boolean waveNew(String clientId) throws Exception;

	Boolean waveOpen(String clientId, String waveId) throws Exception;

	Boolean waveAddParticipant(String clientId, String waveId, String participantName) throws Exception;

	void sendAppendMutation(String clientId, String waveId, String text) throws Exception;
}
